package com.java.shop.service;

import com.java.shop.bean.User;

public interface UserService {

    int deleteByPrimaryKey(Integer ID);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer ID);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 根据账号密码查询用户
     * @param userName
     * @param password
     * @return
     */
    User userLogin(String userName, String password);

    /**
     * 根据手机号查询用户
     * @param mobile
     * @return
     */
    User selectUserByMobile(String mobile);

    /**
     * 根据用户名查询用户信息
     * @param userName
     * @return
     */
    User selectUserByUserName(String userName);
}
